package com.test.qrcode.manage.utils;

/**
 * @program qrcode
 * @Title: StringUtil
 * @description:
 * @author: XueXiao
 * @create: 2019-02-28 09:55:58
 */
public class StringUtil {
    
    /** 
    * @Description: 给定字符串是否为空或空串
    * @Author: XueXiao 
    * @Date: 2019/2/28 09:56
    */ 
    public static boolean isNotEmpty(String str) {
        if (str != null && str.length() != 0) {
            return true;
        }
        return false;
    }
    
    /** 
    * @Description: 给定字符串是否为空或空串
    * @Author: XueXiao 
    * @Date: 2019/2/28 09:56
    */ 
    public static boolean isEmpty(String str) {
        if (str != null && str.length() != 0) {
            return false;
        }
        return true;
    }
}
